package com.back.enums;

import lombok.Getter;

@Getter
public enum CodeEnum {
    GET_SUCCESS(200,"获取数据成功"),
    FAIL(400,"失败"),
    UNAUTHORIZED(401,"未授权"),
    NOT_FOUND(404,"未找到"),
    INTERNAL_SERVER_ERROR(500,"服务器错误");

    private final Integer code;
    private final String msg;

    CodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
